﻿<?php// app/Controller/AppController.phpclass AppController extends Controller {    //...    public $components = array(        'Session',        'Auth' => array(            'loginRedirect' => array('controller' => 'Users', 'action' => 'index'),            'logoutRedirect' => array('controller' => 'pages', 'action' => 'display', 'home')        )    );    public function beforeFilter() {        $this->Auth->allow('index', 'view');    }    //...}